version: '2'
services:
  nginx:
    image: docker.io/cfxl/ihub-agent:latest
    command: agent --b=http://registry:5000 --c="nginx -g 'daemon off;'" --eds="http://copyer.default.hubx.site:30080/event2"
    ports:
      - {{httpPort}}:80
    extra_hosts:
    - "copyer.default.hubx.site:192.168.1.6"
    networks:
      - reigstry
  registry:
    image: registry:latest
    networks:
      - reigstry
    ports:
      - 5000:5000
    volumes:
    - /data/pvs/registry/:/var/lib/registry
networks:
  reigstry:
    driver: bridge